<!--<?php
print<<<EF
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="templates/msystem/ljy.css" rel="stylesheet" type="text/css" />
<link href="ljy.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/controlcc/javascript/Calendar.js"></script>
</head>

<base target="_self" />
<body style="text-align:left">
<div id="toppath">Tracker重定向次数统计</div>

<!--
EF;
if(!$torrent){
print<<<EF
-->
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">Tracker重定向次数</th>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">主机地址</th>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">抓取时间</th>
    <!--<th width="15%" align="center"valign="middle" bgcolor="#F0F0F0">删除</th> -->
  </tr>
 
<!--
EF;
foreach($torrent as $list)
{
$list[ctime]=date("Y-m-d h:i",$list[ctime]);
print<<<EF
-->
  <tr>
    <td align="center" valign="middle">$list[tracount]</td>
	<td align="center" valign="middle">$list[host]</td>
	<td align="center" valign="middle">$list[ctime]</td>
    <!--<td align="center" valign="middle"><a href="acsshow.inc.php?action=delete1&amp;aip=$list[aip]&amp;agetport=$list[agetport]&amp;asendport=$list[asendport]">删除</a></td> -->
  </tr>
<!--
EF;
}
print<<<EF
-->
<p align="center">{$pages}</p>
<!--
EF;
}
print<<<EF
-->
<table style=" float:left;" width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">名称</th>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">主机地址</th>
	<th width="15%" align="center" valign="middle" bgcolor="#F0F0F0">查看重定向统计</th>
  </tr>

<!--
EF;
$i=0;
foreach($listhost as $list)
{
if(!$list[host])$list[host]="&nbsp;";
$h1=explode(':',$listhost[$i]);
$port=$h1[1];
$h1=explode('.',$h1[0]);

print<<<EF
-->
  <tr>
    <td align="center" valign="middle">RDS-23$i</td>
	<td align="center" valign="middle">$listhost[$i]</td>
	<td align="center" valign="middle"><a href="../cacti/graph_view.php?action=preview&ifview=redirect{$h1[3]}_{$port}" target="_self">查看</a></td>
  </tr>
<!--
EF;
$i++;
}
print<<<EF
-->
</body>
</html>
<!--
EF;
?>
-->